import random

i = (int)(random.randint(1, 101))
print(i)
while True:
    a = (int)(input("请输入一个数"))

    if a < i:
        print("你猜小了")
    elif a > i:
        print("你猜大了")
    else:
        print("猜对了")
        break
